package com.huixiong.utils;

import java.nio.Buffer;
import java.nio.ByteBuffer;

/**
 * <描述>
 *
 * @author timothy.yang cloudwise
 * @since 2022-07-05 15:44
 */
public class NioUtils {

    public static void debugRead(ByteBuffer buffer) {

        while (buffer.hasRemaining()) {
            byte b = buffer.get();
            System.out.print((char) b + "");
        }

    }
}
